
/*
//车流量图标
$(function(){
    var myChart = echarts.init(document.getElementById('cllChart'));
    var option = {
        tooltip : {
            trigger: 'axis'
        },
        grid: {
            x: 46,
            y:30,
            x2:32,
            y2:30,
            borderWidth: 0
        },
        legend: {
            data:['南区','北区'],
            textStyle:{
                color:"#e9ebee"
            },
        },
        calculable : true,
        xAxis : [
            {
                type : 'category',
                boundaryGap : false,
                data : ['1:00','2:00','3:00','4:00','5:00','6:00','7:00','8:00','9:00','10:00','11:00','12:00','13:00','14:00','15:00','16:00','17:00','18:00','19:00','20:00','21:00','22:00','23:00','24:00'],
                splitLine: {
                    show: false
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        color: '#a4a7ab'
                    }
                }
            }
        ],
        yAxis : [
            {
                type : 'value',
                splitLine: {
                    show: false
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        color: '#a4a7ab'
                    }
                }

            }
        ],
        series : [
            {
                name:'南区',
                type:'line',
                stack: '车次',
                data:[23, 31, 54, 45, 75, 156, 257,321,478,532,587,555,624, 741, 654, 452, 354, 421, 374,230,245,157,148,99],
                itemStyle: {
                    normal: {
                        color:"#e15828"
                    }
                }
            },
            {
                name:'北区',
                type:'line',
                stack: '车次',
                data:[220, 182, 191, 234, 290, 330, 310,230,245,256,278,300,120, 132, 101, 134, 90, 230, 210,230,245,256,278,300],
                itemStyle: {
                    normal: {
                        color:"#2e7cff"
                    }
                }
            }
        ]
    };
    myChart.setOption(option);
});

//人流量
$(function(){
    var myChart = echarts.init(document.getElementById('rllChart'));
    var option = {
        tooltip : {
            trigger: 'axis'
        },
        grid: {
            x: 46,
            y:30,
            x2:32,
            y2:40,
            borderWidth: 0
        },
        legend: {
            data:['南区','北区'],
            textStyle:{
                color:"#e9ebee"
            },
        },
        calculable : true,
        xAxis : [
            {
                type : 'category',
                boundaryGap : false,
                data : ['1:00','2:00','3:00','4:00','5:00','6:00','7:00','8:00','9:00','10:00','11:00','12:00','13:00','14:00','15:00','16:00','17:00','18:00','19:00','20:00','21:00','22:00','23:00','24:00'],
                splitLine: {
                    show: false
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        color: '#a4a7ab'
                    }
                }
            }
        ],
        yAxis : [
            {
                type : 'value',
                splitLine: {
                    show: false
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        color: '#a4a7ab'
                    }
                }

            }
        ],
        series : [
            {
                name:'南区',
                type:'line',
                stack: '人次',
                data:[120, 132, 101, 134, 90, 230, 210,230,245,256,278,300,120, 132, 101, 134, 90, 230, 210,230,245,256,278,302],
                itemStyle: {
                    normal: {
                        color:"#e15828"
                    }
                }
            },
            {
                name:'北区',
                type:'line',
                stack: '人次',
                data:[220, 182, 191, 234, 230, 210,230,245,256,278,300,120, 132, 101, 134, 90, 230, 210,230,245,256,278,300,258],
                itemStyle: {
                    normal: {
                        color:"#2e7cff"
                    }
                }
            }
        ]
    };
    myChart.setOption(option);
});
//单品销售排名
$(function(){
    var myChart = echarts.init($("#dpSailChart")[0]);
    var option = {
        tooltip : {
            trigger: 'axis',
            axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
            }
        },
        grid: {
            x: 90,
            y:30,
            x2:32,
            y2:40,
            borderWidth: 0
        },
        xAxis:  {
            type: 'value',
            x:'180',
            splitLine: {
                show: false
            },
            axisLabel: {
                show: true,
                textStyle: {
                    color: '#a4a7ab'
                }
            }
        },
        yAxis: {
            type: 'category',
            data: ['方便面','矿泉水','火腿肠','自助餐','绿茶','饼干','红牛','肉夹馍','驴肉火烧','茶叶蛋'],
            splitLine: {
                show: false
            },
            axisLabel: {
                show: true,
                textStyle: {
                    color: '#a4a7ab'
                }
            }
        },
        series: [
            {
                name: '出行人数（人）',
                type: 'bar',
                stack: '总量',
                label: {
                    normal: {
                        show: true,
                        position: 'insideRight'
                    }
                },
                data: [648, 699, 754, 779, 820, 889, 924,1008,1109,1245],
                itemStyle: {
                    normal: {
                        color:"#ff7d0a"
                    }
                }
            }
        ]
    };
    myChart.setOption(option);
});

$(function(){
    var myChart = echarts.init($("#sailChart")[0]);
    option = {
        title : {
            text: '',
            textStyle:{
                color:"#e9ebee"

            },
            x:'center'

        },
        tooltip : {
            trigger: 'axis'
        },
        legend: {
            orient : 'vertical',
            x : 'left',
            data:['南区','北区'],
            textStyle:{
                color:"#e9ebee"

            },
        },

        calculable : false,
        xAxis : [
            {
                type : 'category',
                splitLine:{show: false},
                axisLabel : {
                    formatter: '{value} ',
                    textStyle: {
                        color: '#a4a7ab',
                        align: 'right'
                    }
                },
                data : ['1:00','2:00','3:00','4:00','5:00','6:00','7:00','8:00','9:00','10:00','11:00','12:00','13:00','14:00','15:00','16:00','17:00','18:00','19:00','20:00','21:00','22:00','23:00','24:00'],
            }
        ],
        yAxis : [
            {
                type : 'value',
                splitLine:{show: false},
                axisLabel : {
                    formatter: '{value} ',
                    textStyle: {
                        color: '#a4a7ab',
                        align: 'right'
                    }
                }
            }
        ],
        grid:{
            borderWidth:0
        },
        series : [
            {
                name:'南区',
                type:'bar',
                data:[200, 329,490,612, 700,1240, 2320, 2478,2560,5897, 7670,9541, 13560,15422, 16220, 9541,3260,3161, 2000, 1870,640, 541,330,221],
                itemStyle: {
                    normal: {
                        color: '#2481ff'
                    }
                },
                markPoint : {
                    data : [
                        {type : 'max', name: '最大值'},
                        {type : 'min', name: '最小值'}
                    ]
                },
                markLine : {
                    data : [
                        {type : 'average', name: '平均值'}
                    ]
                }
            },
            {
                name:'北区',
                type:'bar',
                data:[220, 300,531,678, 845,1290, 2218, 2400,2499,6157, 7780,9212, 14560,14422, 17220, 8541,2260,2161, 2899, 1670,600, 641,390,202],
                itemStyle: {
                    normal: {
                        color: '#1afffd'
                    }
                },

                markPoint : {
                    data : [
                        {name : '最高', value : 182.2, xAxis: 7, yAxis: 183, symbolSize:18},
                        {name : '最低', value : 2.3, xAxis: 11, yAxis: 3}
                    ]
                },
                markLine : {
                    data : [
                        {type : 'average', name : '平均值'}
                    ]
                }
            }
        ]
    };


    myChart.setOption(option);
});
//南区销量
$(function(){
    var myChart = echarts.init($("#nqSailChart")[0]);
    option = {
        legend: {
            orient : 'vertical',
            x : 'left',
            data:['超市','餐厅','陕十三','喜家德','一品炸串'],
            textStyle:{
                color:"#e9ebee"

            }
        },
        title : {
            text: '南区',
            textStyle:{
                color:"#e9ebee"

            },
            x:'center'

        },
        calculable : false,
        series : [
            {
                name:'销售额',
                type:'pie',
                radius : '55%',
                center: ['50%', '60%'],
                data:[
                    {value:335, name:'超市',
                        itemStyle: {
                            normal: {
                                color:"#1afffd"
                            }
                        }},
                    {value:310, name:'餐厅',
                        itemStyle: {
                            normal: {
                                color:"#2e7cff"
                            }
                        }},
                    {value:234, name:'陕十三',
                        itemStyle: {
                            normal: {
                                color:"#ffcb89"
                            }
                        }},
                    {value:135, name:'喜家德',
                        itemStyle: {
                            normal: {
                                color:"#005ea1"
                            }
                        }},
                    {value:1548, name:'一品炸串',
                        itemStyle: {
                            normal: {
                                color:"#0ad5ff"
                            }
                        }}
                ]
            }
        ]
    };


    myChart.setOption(option);
});
$(function(){
    var myChart = echarts.init($("#bqSailChart")[0]);
    option = {
        legend: {
            orient : 'vertical',
            x : 'left',
            data:['超市','餐厅','呷哺呷哺','豆花妈妈','赛百味'],
            textStyle:{
                color:"#e9ebee"

            }
        },
        title : {
            text: '北区',
            textStyle:{
                color:"#e9ebee"

            },
            x:'center'

        },
        calculable : false,
        series : [
            {
                name:'销售额',
                type:'pie',
                radius : '55%',
                center: ['50%', '60%'],
                data:[
                    {value:335, name:'超市',
                        itemStyle: {
                            normal: {
                                color:"#1afffd"
                            }
                        }},
                    {value:310, name:'餐厅',
                        itemStyle: {
                            normal: {
                                color:"#2e7cff"
                            }
                        }},
                    {value:234, name:'呷哺呷哺',
                        itemStyle: {
                            normal: {
                                color:"#ffcb89"
                            }
                        }},
                    {value:135, name:'豆花妈妈',
                        itemStyle: {
                            normal: {
                                color:"#005ea1"
                            }
                        }},
                    {value:1548, name:'赛百味',
                        itemStyle: {
                            normal: {
                                color:"#0ad5ff"
                            }
                        }}
                ]
            }
        ]
    };


    myChart.setOption(option);
});*/
